<?php
//验证登陆信息
session_start();


include_once ("../config.php");




$account=$_REQUEST['account'];

$table_suffix="user";
$table=$table_Prefix.$table_suffix;
$user=select_one_line_all_items($table,"mid='jiguanchufang' or mid='xunjingchufang' or mid='jiaojingchufang'   ");






	//搜索到用户
	if($user['name']) {
		$_SESSION['username']     = $user['name'];
		$_SESSION['department']   = $user['department'];
		$_SESSION['departmentid'] = $user['departmentid'];
		$_SESSION['mid']          = $user['mid'];
		$_SESSION['nid']          = $user['nid'];
		$_SESSION['quanxian']     = $user['quanxian'];
		$_SESSION['position']     = $user['position'];
		$_SESSION['cid']          = $user['cid'];


	}


echo "<script language='javascript'> location='../controlbase/';</script>";



?>